import Vue from 'vue'
import Router from 'vue-router'

import no1 from './com/no1.vue'
import no2 from './com/no2.vue'
import no3 from './com/no3.vue'
import no4 from './com/no4.vue'
import no5 from './com/no5.vue'

import list from './com/list.vue'
Vue.use(Router)


export default new Router({
    routes: [
        { path: '/', name: 'no1', component: no1,redirect:'/list_type/所有景点',
        children:[
            {path:'list_type/:id',name:"list",component:list}
        ]},
        { path: '/no2', name: 'no2', component: no2,redirect:'no2/list_type/所有景点',children:[
            {path:'list_type/:id',name:"list",component:list}
        ] },
        { path: '/no3', name: 'no3', component: no3 },
        { path: '/no4', name: 'no4', component: no4 },
        { path: '/no5', name: 'no5', component: no5 },
    ]
})